Skip to content

Conversation

@Will-ShaoHua
Copy link
Contributor

@Will-ShaoHua Will-ShaoHua commented Jan 8, 2025

Problem

t1: user trigger inline suggestion either automatically or manually
t2: start building request with editor context
t3: done building request
t4: call service API

PreprocessLatency is supposed to denote t3 - t1, whereas current implementation isn't which has been using codewhispererPreprocessingLatency: session.fetchCredentialStartTime - session.invokeSuggestionStartTime,

Solution


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Will-ShaoHua Will-ShaoHua requested review from a team as code owners January 8, 2025 18:04
@Will-ShaoHua Will-ShaoHua merged commit 4465d16 into aws:master Jan 9, 2025
26 checks passed
@Will-ShaoHua Will-ShaoHua deleted the preprocessLatency branch January 9, 2025 22:39
})

it('setInvocationSuggestionStartTime should call resetClientComponentLatencyTime', function () {
const resetStub = sinon.stub(sut, 'resetClientComponentLatencyTime')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sinon can be avoided for this entire test module. Can you change TelemetryHelper to return state that can be tested instead?

karanA-aws pushed a commit to karanA-aws/aws-toolkit-vscode that referenced this pull request Jan 17, 2025
…eprocessLatency (aws#6320)

## Problem

t1: user trigger inline suggestion either automatically or manually
t2: start building request with editor context
t3: done building request
t4: call service API

PreprocessLatency is supposed to denote `t3 - t1`, whereas current
implementation isn't which has been using
`codewhispererPreprocessingLatency: session.fetchCredentialStartTime -
session.invokeSuggestionStartTime,`












## Solution


---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
kevluu-aws pushed a commit to kevluu-aws/aws-toolkit-vscode that referenced this pull request Jan 23, 2025
…eprocessLatency (aws#6320)

## Problem

t1: user trigger inline suggestion either automatically or manually
t2: start building request with editor context
t3: done building request
t4: call service API

PreprocessLatency is supposed to denote `t3 - t1`, whereas current
implementation isn't which has been using
`codewhispererPreprocessingLatency: session.fetchCredentialStartTime -
session.invokeSuggestionStartTime,`












## Solution


---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
s7ab059789 pushed a commit to s7ab059789/aws-toolkit-vscode that referenced this pull request Feb 19, 2025
…eprocessLatency (aws#6320)

## Problem

t1: user trigger inline suggestion either automatically or manually
t2: start building request with editor context
t3: done building request
t4: call service API

PreprocessLatency is supposed to denote `t3 - t1`, whereas current
implementation isn't which has been using
`codewhispererPreprocessingLatency: session.fetchCredentialStartTime -
session.invokeSuggestionStartTime,`












## Solution


---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants